package com.mybatis.sqlsession;

import java.util.List;

public interface SqlSession {

    <T> List<T> selectList(String statementId,Object... param) throws Exception;

    <T> T selectOne(String statementId,Object... param) throws Exception;

    int insert(String statementId,Object... param) throws Exception;

    int update(String statementId,Object... param) throws Exception;

    int delete(String statementId,Object... param) throws Exception;

    <T> T getMapper(Class<?> type);
}
